from PyQt5.QtWidgets import *
from custom_dialog_frame import Ui_Dialog


class CustomDialog(QDialog, Ui_Dialog):
    def __init__(self):
        super(QDialog, self).__init__()
        self.setupUi(self)
        self.__connect_signals()

    def __connect_signals(self):
        self.dialog_sure.clicked.connect(self.__sure_click)

    def __sure_click(self):
        self.edi_2.setText(self.edit_1.displayText())
